<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>单体</title>
	<script type="text/javascript">
		
		var Tom = {

			name:'tom',

			age:18,

			showname:function(){
				alert(this.name);
			},

			showage:function(){
				alert(this.age);
			}

		}


		Tom.showname();








	</script>
</head>
<body>
	
</body>
</html>